﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WS.EKA.Model;

namespace WS.EKA.DataAccess
{
    public class OrderProductContext:DBContext<OrderProduct>
    {
        public static List<OrderProduct> GetProductByOrderId(Guid orderId)
        {
            string sql = "SELECT * FROM V_OrderProduct WHERE OrderInfoGuid={0}";
            return OrderProductContext.Exec2List(sql, new object[] { orderId });
        }
    }
}
